package cn.com.fssg.platform.base.handler.impl.fsadmin;

import cn.com.fssg.platform.base.handler.InterfaceHandler;
import cn.com.fssg.platform.biz.ExtendUtil;
import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;

/**
 * @author : xzt
 * @description :
 * @createDate : 2025/6/16 11:30
 */
public class ProcStartExtend implements InterfaceHandler {


    @Override
    public Object run(HttpServletRequest request, JSONObject jsonObject) throws Exception {
        String processDefinitionKey = jsonObject.getString("processDefinitionKey");
        String bizKey = jsonObject.getString("bizKey");
        String params = jsonObject.getString("params");
        String formListStr = jsonObject.getString("formListStr");
        String processPageId = jsonObject.getString("processPageId");
        Object result = null;
        result = ExtendUtil.cur().startProcess(processDefinitionKey,bizKey,params,formListStr,processPageId);
        return result;
    }

}

